import { NodeEventType, UIRenderer, _decorator, sp } from "cc";
import JNFrameSkeletonSystem from "./JNFrameSkeletonSystem";
const { ccclass, property } = _decorator;

@ccclass('JNSkeleton')
export default class JNSkeleton extends sp.Skeleton{
    public onEnable() {
        UIRenderer.prototype.onEnable.bind(this)();
        this._flushAssembler();
        JNFrameSkeletonSystem.getInstance().add(this);
    }
    public onDisable () {
        UIRenderer.prototype.onDisable.bind(this)();
        JNFrameSkeletonSystem.getInstance().remove(this);
    }
}

